package com.lab.webSocket.model;

import javax.persistence.*;

/**
 * Created by xu_jiaHui on 2017/9/7.
 */
@Entity
@Table(name = "tb_friendsList", schema = "webSocket", catalog = "")
public class FriendsListEntity {
    private Integer friendListId;
    private String friendAccount;
    private String userAccount;

    public FriendsListEntity() {
    }

    public FriendsListEntity(String friendAccount, String userAccount) {
        this.friendAccount = friendAccount;
        this.userAccount = userAccount;
    }

    @Id
    @Column(name = "friendListId")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFriendListId() {
        return friendListId;
    }

    public void setFriendListId(Integer friendListId) {
        this.friendListId = friendListId;
    }

    @Basic
    @Column(name = "friendAccount")
    public String getFriendAccount() {
        return friendAccount;
    }

    public void setFriendAccount(String friendAccount) {
        this.friendAccount = friendAccount;
    }

    @Basic
    @Column(name = "userAccount")
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }
    
}
